<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>确认参数</title>
    <jsp:include page="common/common_head.jsp"></jsp:include>


</head>
<body  data-spy="scroll" data-target=".navbar">



<jsp:include page="common/common_banner_app.jsp"></jsp:include>
<div style="height:30px"></div>
<div class="container">

    <h4>正在安装${app}(${version}) 确认</h4>



    <form action="${nextStep}" id="slaveForm">
        <table class="table  table-striped table-bordered table-hover " id = "showTable">

            <thead>

                </thead>
                <tbody>

                <tr>
                   <td colspan="6">
                       版本: <input type="text" name="version" value="${version}"/>   </br>
                       应用: <input type="text" name="app" value="${app}"/>           </br>
                       应用名称: <input type="text" name="appName" value="${params.appName}"/> </br>
                       <c:if test="${not empty zks}">
                           ZK集群选择:
                           <select name="zookeeper">
                           <c:forEach items="${zks}" var="kk">
                               <option value="${kk}">${kk}</option>
                           </c:forEach>
                            </select> 提示:如果安装多个集群，请使用不同的ZK集群</br>
                       </c:if>

                       <c:if test="${not empty hadoops}">
                           Hadoop集群选择:
                           <select name="hadoopName">
                               <c:forEach items="${hadoops}" var="kk">
                                   <option value="${kk}">${kk}</option>
                               </c:forEach>
                           </select> 提示:如果安装多个集群，请选择就近的集群</br>
                       </c:if>
                       <input type="hidden" name="step" value="${step}"/></br>
                       <c:forEach items="${iterKVs}" var="c">
                           ${c.key}:  <input type="text" name="${c.key}" value="${c.value}"/></br>
                       </c:forEach>
                       <input type="button" onclick="submitForm()" class="btn" value="提交"/>
                   </td>
                </tr>
            </tbody>

        </table>
    </form>



	<jsp:include page="common/common_js.jsp"></jsp:include>




	<script>

        function submitForm(){

            $("#slaveForm").submit()
        }


	</script>
</body>
</html>